home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 6 / MacMania 6.toast / / Tools&Utilities / EnterAct Stuff / write your own Drag_on / AppCodeComm.h next >
Text File  |  1995-01-13  |  1KB  |  34 lines

  1. /* AppCodeComm.h - data struct for communicating between
  2. application and code resource. */
  3.  
  4. typedef struct AppCodeComm
  5.     {
  6.     /* c strings except as noted */
  7.     char        *stdInFileName,
  8.                 *stdInFileNameP, /* pascal version of above */
  9.                 *stdOutFileName,
  10.                 *stdErrFileName,
  11.                 *callerName,
  12.                 *thisCodeName;
  13.     short            result;
  14.     short            version; /* currently 2 */
  15. /* Extension ("callback") functions - ALL OPTIONAL */
  16.     short            (*InDictionary_Ext)(char *tokenName);
  17.     Handle        (*GetFrontText_Ext)(Boolean getItAll);
  18.     void        (*GetNextMultiFile_Ext)(short *panePtr, short *indexPtr, 
  19.                 short *vRefNumPtr, char *fileName, Boolean clearFlag);
  20.     short         (*OKStopAlert_Ext)(Ptr cstringPtr);
  21.     void        (*MemoryAlert_Ext)(void);
  22.     short            (*GetScreenHeight_Ext)(void);
  23.     short            (*GetScreenWidth_Ext)(void);
  24.     void        (*SetWatchCursor_Ext)(void);
  25. /* Concurrent exec, added for version 2 */
  26.     void        (*DoEventLoopOnce_Ext)(void);
  27. /* Access to scrap/clip of calling app */
  28.     Handle        (*GetAppClip_Ext)(void);
  29. /* Added for version 3 */
  30.     long        extendID; // Caller should set to 'VER3'
  31.     short        (*PutAppClip_Ext)(char *newClipStr);
  32.     } AppCodeComm, *ACCPtr;
  33.  
  34. extern AppCodeComm    gacc;